﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XingNet.Web.Model
{
  public class Fields_User
  {
    [Flags]
    public enum Fields
    {
      none = 0x00,
    first_name = 0x02,
    last_name = 0x04,
    display_name = 0x08,
    page_name = 0x16,
    gender = 0x32,
    birth_date = 0x64,
    active_email = 0x128,
    time_zone = 0x256,
    premium_services = 0x512
    }

    public static string GetFieldList(Fields SelectedFields)
    {
      string List = "";
      List += (SelectedFields & Fields.first_name) == Fields.first_name ? "first_name," : "";
      List += (SelectedFields & Fields.last_name) == Fields.last_name ? "last_name," : "";
      List += (SelectedFields & Fields.display_name) == Fields.display_name ? "display_name," : "";
      List += (SelectedFields & Fields.page_name) == Fields.first_name ? "page_name," : "";
      List += (SelectedFields & Fields.gender) == Fields.gender ? "gender," : "";
      List += (SelectedFields & Fields.birth_date) == Fields.birth_date ? "birth_date," : "";
      List += (SelectedFields & Fields.active_email) == Fields.active_email ? "active_email," : "";
      List += (SelectedFields & Fields.time_zone) == Fields.time_zone ? "time_zone," : "";
      List += (SelectedFields & Fields.premium_services) == Fields.premium_services ? "premium_services," : "";
      return List;
    }
    



//"badges": ["PREMIUM", "MODERATOR"],
//"wants": "einen neuen Job",
//"haves": "viele tolle Skills",
//"interests": "Flitzebogen schießen and so on",
//"organisation_member": "ACM, GI",
//"languages": {
//"de": "NATIVE",
//"en": "FLUENT",
//"fr": null,
//"zh": "BASIC"
//},
//"private_address": {
//},
//"business_address": {

//},
//"web_profiles": {

//},
//"instant_messaging_accounts": {

//},
//"professional_experience": {
//"primary_company": {
//},
//"non_primary_companies": [{
//"awards"
//"educational_background": {
//"schools":
//"qualifications": 
//"photo_urls": {


  }
}
